﻿using System.Collections.Generic;
using System.Linq;

namespace System
{

    public static class EnumExtenders
    {

        public static IEnumerable<string> GetNames(this Enum extendee)
        {
            Type t = extendee.GetType();
            return t.GetFields().Where(x => x.IsLiteral).Select(x => x.Name);
        }

    }

}